<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>修改密码</title>
</head>
<body>
<div class="pd-20">
	<form action="" method="post" class="form form-horizontal" id="form1">
		
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red" id="mimastar">*</span>原始密码：</label>
			<div class="formControls col-5">
				<input type="password" placeholder="密码" autocomplete="off" value="" class="input-text" datatype="*6-20" nullmsg="请填写原始密码" name="passwd">
			</div>
			<div class="col-3"> </div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red" id="mimastar">*</span>新密码：</label>
			<div class="formControls col-5">
				<input type="password" placeholder="密码" autocomplete="off" value="" class="input-text" datatype="*6-20" nullmsg="请填写新密码" name="newPasswd">
			</div>
			<div class="col-3"> </div>
		</div>
		
		
		
		<div class="row cl">
			<div class="col-9 col-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</div>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 

<script type="text/javascript" src="lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript" src="js/s.js"></script> 
<script type="text/javascript">
var classid;//定义权限组变量
function Validformsubmit(form){
    $(form).Validform({
        tiptype:2,
        ajaxPost:true,
        callback:function(data){
            if(!checkStatus(data)) return;
            if(data.status=='1'){
                var index = parent.layer.getFrameIndex(window.name);
                parent.parent.layer.msg(data.info, {icon:1,time:1000});
                // window.parent.location.reload();
                parent.layer.close(index); 
                // console.log("kk:"+window.parent.kk)     
            }
        }
    });
}

$(function(){
	

	$("#form1").attr("action", API_SETPASSWORD);
	
	// $("#form1").Validform({
	// 	tiptype:2,
	
 //        ajaxPost:true,
	// 	callback:function(data){
	// 		if(!checkStatus(data)) return;
	//         if(data.status=='1'){
	//            var index = parent.layer.getFrameIndex(window.name);
	//            parent.parent.layer.msg("操作成功", {icon:1,time:1000});
	//            parent.$('.btn-refresh').click();
	//            window.parent.location.reload();
	//            parent.layer.close(index);      
	//         }
	// 	}

	// });
	Validformsubmit("#form1");
});
</script>
</body>
</html>